﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Event.NCL
{
    /// <summary>
    /// 向服务器发送登录的事件
    /// </summary>
    public class NCLLoginEvent : NCLEvent
    {
        public string StartupPath { get; set; }
        public string AppType { get; set; }
        public string AppVersion { get; set; }
        public string OSVersion { get; set; }
        public string DotNetVersion { get; set; }
        public string UserAccount { get; set; }
        public string SolutionSelectionMode { get; set; }
        public string UserPassword { get; set; }

        public EventResult Result { get; set; }

        public class EventResult
        {
            public string UserIdentity { get; set; }
            public string UserAccount { get; set; }
            public string UserName { get; set; }
        }

        public NCLLoginEvent Clone()
        {
            NCLLoginEvent @event = new NCLLoginEvent();

            @event.StartupPath = this.StartupPath;
            @event.AppType = this.AppType;
            @event.AppVersion = this.AppVersion;
            @event.OSVersion = this.OSVersion;
            @event.DotNetVersion = this.DotNetVersion;
            @event.UserAccount = this.UserAccount;
            @event.SolutionSelectionMode = this.SolutionSelectionMode;
            @event.UserPassword = this.UserPassword;
            @event.Result = this.Result;
            return @event;
        }
    }
}
